from flask import Flask, request
import json

app = Flask(__name__)

@app.route("/", methods=["GET"])
def hello():
    return "Hello World!"

@app.route("/recvmsg/", methods=["POST"])
def recvmsg():
    print json.loads(request.get_data())
    return request.get_data()

app.run(host='0.0.0.0')